package javase2.day05.demo04;

//1.创建Thead的子类
public class ThreadZi extends Thread {
    //在Thread的子类中重写run方法，设置线程任务
    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println("run--->"+i);
        }
    }
}
